var arr
/* arr=[5,6,3,4,4,5] */
arr=[5,6,3,4,454,58,4,5,45,5]
for (let  len=arr.length,i = len-1; i >=0; i--) {
    for (let j = 0; j <=i; j++) {
        if(arr[j]>arr[j+1]){
            let t=arr[j]
            arr[j]=arr[j+1]
            arr[j+1]=t
            
        }
        
    }
    console.log(arr);
}